Thermo mechanical device